package com.project.easy.common.framework.auth.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


/**
 * @author GreatorMan.cool
 * @copyright: Copyright (c) 2020
 * @company: 扬起科技有限公司
 * @date 2020/9/27 16:25
 * @description:  权限配置
 */
@Component
@ConfigurationProperties(prefix = "yqkj.zysoft.auth")

public class AuthConfig {
    /**
     * APPID
     */
    private String appId;
    /**
     * 是否开启权限
     */
    private Boolean hasAuth;
    /**
     * TOKEN 存储类型:redis,member,yqkjStorage
     */
    private String tokenStorageType;
    /**
     * TOKEN 方式 自己定义生成TOKEN规范
     */
    private String generateToken;


    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public Boolean getHasAuth() {
        return hasAuth;
    }

    public void setHasAuth(Boolean hasAuth) {
        this.hasAuth = hasAuth;
    }

    public String getTokenStorageType() {
        return tokenStorageType;
    }

    public void setTokenStorageType(String tokenStorageType) {
        this.tokenStorageType = tokenStorageType;
    }

    public String getGenerateToken() {
        return generateToken;
    }

    public void setGenerateToken(String generateToken) {
        this.generateToken = generateToken;
    }
}
